﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndexImgList.aspx.cs" Inherits="StudentManage.Web.Admin.Management.indexImg.IndexImgList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register src="/Admin/PageHead/UC_Head.ascx" tagname="UC_Head" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <uc1:UC_Head ID="UC_Head1" runat="server" />
    <style type="text/css">
        body
        {
            margin: 0px;
            background-color: #F8F9FA;
            font-family: "宋体";
            font-size: 12px;
            line-height: 1.5;
        }
        .table120 td
        {
            text-align: center;
            padding: 3px 0px 3px 0px;
        }
        .table120 tr
        {
            cursor:pointer;
            }
        .bg_default{ background-color:#f2f2f2;}
        .bg_over{ background-color:#aedcfa;}
    </style>
    <%--<script src="/js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <link href="/Admin/images/skin.css" rel="stylesheet" type="text/css" />--%>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#UserTbody tr").bind("mouseenter mouseleave", function () {
                $(this).toggleClass("bg_over");
            });
            $("#UserTbody tr:odd").addClass("bg_default");
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" node-type="header_table">
        <tr>
            <td width="17" height="29" valign="top" background="../images/mail_leftbg.gif">
                <img src="../../images/left-top-right.gif" width="17" height="29" />
            </td>
            <td height="29" valign="top" background="../images/content-bg.gif">
                <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
                    id="table2">
                    <tr>
                        <td height="31">
                            <div class="titlebt">图片列表</div>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="16" valign="top" background="../images/mail_rightbg.gif">
                <img src="../../images/nav-right-bg.gif" width="16" height="29" />
            </td>
        </tr>
        <tr>
            <td height="71" valign="middle" background="../../images/mail_leftbg.gif">
                &nbsp;
            </td>
            <td valign="top" bgcolor="#F7F8F9">
                <table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="13" valign="top">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="left_txt">
                                        当前位置：图片列表
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20">
                                        <table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
                                            <tr>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" align="right" style="padding:5px 0px;">
                                        <asp:Button ID="Btn_Add" runat="server" Text="添加图片" onclick="Btn_Add_Click" style=" cursor:pointer;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="100%" border="1" cellspacing="0" cellpadding="0" class="table120" style="border-collapse:collapse;">
                                            <thead class="nowtable">
                                                <tr>
                                                    <th style="width:40px;height: 25px; line-height: 25px;">
                                                        序号
                                                    </th>
                                                    <th>
                                                        图片
                                                    </th>
                                                    <th>
                                                        图片标题
                                                    </th>
                                                    <th>
                                                        是否显示
                                                    </th>
                                                    <th style="width:150px;">
                                                        发布时间
                                                    </th>
                                                    <th style="width:60px;">查看详细</th>
                                                    <th style="width:60px;">删除</th>
                                                </tr>
                                            </thead>
                                            <tbody id="UserTbody">
                                                <asp:Repeater ID="Rep_List" runat="server" onitemcommand="Rep_DataList_ItemCommand">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td><%=GetXN()%></td>
                                                            <td><img src="/Upload/image/<%#Eval("ImgPath")%>" width="250" height="70" /></td>
                                                            <td><%#Eval("Title")%></td>
                                                            <td><%#Convert.ToBoolean(Eval("IsVisible"))?"是":"否"%></td>
                                                            <td><%#Eval("AddTime")%></td>
                                                            <td><a href="IndexImgEdit.aspx?EditID=<%#Eval("id")%>"><img src="../../images/file.gif" width="16" height="16" border="0" /></a></td>
                                                            <td><asp:Button ID="Btn_Del" runat="server" CommandName="Del" OnClientClick="return confirm('确定删除?')" CssClass="RepBtnDel" CommandArgument=<%#Eval("id")%>  /></a></td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </tbody>
                                        </table>
                                        <webdiyer:aspnetpager id="AspNetPager1" runat="server" pagesize="10" 
                                            firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" prevpagetext="上一页" showpageindex="true">
                                         </webdiyer:aspnetpager>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td background="../../images/mail_rightbg.gif">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="middle" background="../images/mail_leftbg.gif">
                <img src="../../images/buttom_left2.gif" width="17" height="17" />
            </td>
            <td height="17" valign="top" background="../../images/buttom_bgs.gif">
                <img src="../../images/buttom_bgs.gif" width="17" height="17" />
            </td>
            <td background="../images/mail_rightbg.gif">
                <img src="../../images/buttom_right2.gif" width="16" height="17" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>